home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tools Unlimited 1: The Blanker Collection
/
Tools Unlimited - Vol 1 - The Blanker Collection.iso
/
Blanker
/
Packages
/
SwazBlanker27
/
ModuleDemo
< prev
next >
Wrap
Text File
|
1996-01-25
|
4KB
|
129 lines
/* This script demos the SwazBlanker modules, running each for a while.
By Osma Ahvenlampi <oahvenla@snakemail.hut.fi> */
/* Try to start the server task if not running */
if ~show('L','rexxsupport.library') then
if ~addlib('rexxsupport.library',0,-30,0) then do
say 'rexxsupport.library not found! Aborting...'
exit 20
end
if ~show('P','SWAZBLANKER') then do
say 'SwazBlanker not running!'
say 'Attempting to start it...'
address command
'Run >NIL: SwazBlanker >NIL:'
'WaitForPort SWAZBLANKER'
if rc = 5 then do
say 'Unable to run SwazBlanker!'
exit 20
end
end
blankers.1.name = 'Alerts'
blankers.1.description = 'This module flashes alert messages.'
blankers.1.delay = 10
blankers.2.name = 'Dimmer'
blankers.2.description = 'Dims the screen.'
blankers.2.delay = 3
blankers.3.name = 'Gravity'
blankers.3.description = 'Bounces some balls around the screen.'
blankers.3.delay = 5
blankers.4.name = 'Headlines'
blankers.4.description = 'Writes funny phrases.'
blankers.4.delay = 15
blankers.5.name = 'Labrynth'
blankers.5.description = 'Solves a maze.'
blankers.5.delay = 5
blankers.6.name = 'Lines'
blankers.6.description = 'Draws lines moving around the screen.'
blankers.6.delay = 5
blankers.7.name = 'Melt'
blankers.7.description = 'Melts the display.'
blankers.7.delay = 5
blankers.8.name = 'Mig'
blankers.8.description = 'Colorful color patterns representing electric charges.'
blankers.8.delay = 10
blankers.9.name = 'Pattern'
blankers.9.description = 'Colorful color patterns.'
blankers.9.delay = 10
blankers.10.name = 'Plazma'
blankers.10.description = 'Plazma color patterns.'
blankers.10.delay = 10
blankers.11.name = 'Pyro'
blankers.11.description = 'Usual fireworks blanker...'
blankers.11.delay = 5
blankers.12.name = 'Quotes'
blankers.12.description = 'Writes funny quotes.'
blankers.12.delay = 15
blankers.13.name = 'Rainfall'
blankers.13.description = 'Monsoon season.'
blankers.13.delay = 5
blankers.14.name = 'Shuffle'
blankers.14.description = 'Shuffles around the display.'
blankers.14.delay = 5
blankers.15.name = 'Spliner'
blankers.15.description = 'Colorful spline moving around the screen.'
blankers.15.delay = 5
blankers.16.name = 'Stars'
blankers.16.description = '3D Rotational starfield.'
blankers.16.delay = 10
blankers.17.name = 'Swarmer'
blankers.17.description = 'Bees chasing wasps.'
blankers.17.delay = 5
blankers.18.name = 'Toasters'
blankers.18.description = 'Flying toasters.'
blankers.18.delay = 5
blankers.19.name = 'Worms'
blankers.19.description = 'Worms eating the display.'
blankers.19.delay = 5
/* ok, now we can start the demo */
address 'SWAZBLANKER'
'BLANKMOUSE'
say 'SwazBlanker module demo'
say ' This demo shows you all the SwazBlanker modules one by one.'
say ' Just sit back and relax!'
call delay( 25 )
/* SwazBlanker ARexx commands:
QUIT removes BlankerServer
SHOW displays the configuration GUI
HIDE hides the GUI
DISABLE disables SwazBlanker (see the Commodities Exchange)
ENABLE enables it
BLANK blanks with the preferred method
BLANKRANDOM chooses a random module for blanking
BLANKNORMAL blanks with a plain black screen
BLANK chooses a specific blanker module
UNBLANK stops blanking
BLANKMOUSE blanks the mouse pointer
*/
i = 1
do while blankers.i.name ~= 'BLANKERS.'i'.NAME'
say blankers.i.name
if blankers.i.description = 'BLANKERS.'i'.DESCRIPTION' then
blankers.i.description = 'No description given.'
if blankers.i.delay = 'BLANKERS.'i'.DELAY' then
blankers.i.delay = 10
say ' ' || blankers.i.description
call delay( 50 )
'BLANK' blankers.i.name
call delay( blankers.i.delay * 50 )
'UNBLANK'
i = i + 1
end
say 'All done!'
say 'You have seen all the BlankerServer modules.'
say 'Configure BlankerServer to suit your preferences now.'
call delay( 50 )
'SHOW'
EXIT 0